home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XenOverclock3DFX.xpl < prev    next >
Text File  |  2002-04-26  |  2KB  |  66 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="7"
  3. "COUNT"="2"
  4. "UIPATH"="Hardware\Video Cards\3DFX"
  5. "NAME"="3DFX Graphic's Card Overclocker"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Add Overclocking"
  8. "TEXT 2"="Remove Overclocking"
  9. "DESCRIPTION 1"="This will add the ability to overclock your 3DFX video card by adding a slider to your Display Properties dialog to tweak performance."
  10. "DESCRIPTION 2"="NOTE: In most cases this is harmless. If it causes problems simply reboot and set it back to its original setting. Still, you use this at your own risk. This may note work on all computer configurations."
  11. "DESCRIPTION 3"="Plugin Created by J. Scott Elblein"
  12. "VERSION"="1.15"
  13. "WARNING"="You agree to use this at your own risk."
  14. "AUTHOR"="J. Scott Elblein"
  15. "COPYRIGHT"="All Rights Reserved. 2001"
  16. "CONTACTURL"="http://www.xenon-inc.com/"
  17. "COMMENT 1"="... Used with permission"
  18.  
  19. 'Hey XTeq dudes ... how about adding a Bookmarks drop-down list so you can go directly to favorite keys? ;)
  20.  
  21. 'Called when the Plugin is started
  22. SUB Plugin_Initialize
  23.  call setuielement(1,true)
  24.  
  25. END SUB
  26.  
  27. 'Called when the Plugin should validate the Data the user has entered
  28. SUB Plugin_CheckData(ElementIndex)
  29. END SUB
  30.  
  31. 'Called when the Plugin should apply the changes
  32. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  
  34.  b = getuielement(1)
  35.  
  36.  if b = true then
  37.  
  38.     call RegWriteValue("HKLM\Software\3dfx Interactive\3dfx Tools\Installed\Tools\{AB040305-8AA1-11D2-8DD1-00104BB5EAD6}\CompleteRegistration",1,2)
  39.     MsgInformation("Overclocking added. Right click your desktop and choose Properties to use it.")
  40.     Restart
  41.  
  42.  else
  43.     if regvalueexists("HKLM\Software\3dfx Interactive\3dfx Tools\Installed\Tools\{AB040305-8AA1-11D2-8DD1-00104BB5EAD6}\CompleteRegistration") then
  44.        call regDeleteValue("HKLM\Software\3dfx Interactive\3dfx Tools\Installed\Tools\{AB040305-8AA1-11D2-8DD1-00104BB5EAD6}\CompleteRegistration")
  45.     end if
  46.  
  47.     if regpathexists("HKLM\Software\3dfx Interactive\3dfx Tools\Installed\Tools\{AB040305-8AA1-11D2-8DD1-00104BB5EAD6}") then
  48.  
  49.        call RegDeletePath("HKLM\Software\3dfx Interactive\3dfx Tools\Installed\Tools\{AB040305-8AA1-11D2-8DD1-00104BB5EAD6}")
  50.        MsgInformation("Overclocking Removed.")
  51.        Restart
  52.  
  53.     else
  54.  
  55.        msginformation("Nothing to Delete")
  56.  
  57.     end if
  58.  
  59.  end if
  60.  
  61. END SUB
  62.  
  63. 'Called when the Plugin is about to be removed from memory
  64. SUB Plugin_Terminate
  65. END SUB
  66.